package com.vo.AfterSales;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel("售后问题视图对象")
public class AfterSalesVO {

    @ApiModelProperty(value = "售后问题唯一标识")
    private Long id;

    @ApiModelProperty(value = "售后问题编号")
    private String orderNumber;

    @ApiModelProperty(value = "客户公司name")
    private String customerName;

    @ApiModelProperty(value = "客户公司ID")
    private Long customerCompanyId;

    @ApiModelProperty(value = "售后问题整体状态")
    private String status;

    @ApiModelProperty(value = "分配的售后服务人员name")
    private List<String> receiverName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "最后更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建人名称")
    private String createdBy;

    @ApiModelProperty(value = "简要描述（可选）")
    private String description;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "售后任务开始时间")
    private LocalDateTime startTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "售后任务结束时间（可为空）")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "服务地点")
    private String serviceLocation;

    @ApiModelProperty(value = "联系人")
    private String contactPerson;

    @ApiModelProperty(value = "联系电话")
    private String phoneNumber;

    @ApiModelProperty(value = "项目类型（分为重点和一般作为奖金区分）")
    private String projectType;

    @ApiModelProperty(value = "服务天数")
    private Double serviceDays;

    @ApiModelProperty(value = "差旅费")
    @TableField("travel_expense")
    private Double travelExpense;

}